﻿using System.Globalization;
using System.Web;
using System.Web.Services;
using System.Collections .Generic;
using System.Text;
using OA.Bll;
using OA.Model;

namespace OA.Web.Handler
{
    /// <summary>
    /// $codebehindclassname$ 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class DeptHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            DeptPresenter deptPresenter = new DeptPresenter();

            context.Response.Write(deptPresenter.GetAllDept());
        }

        public bool IsReusable
        {
            get { return false; }
        }
    }
}
